Skip to content

multiple fixes in twas.R#372

Merged
gaow merged 3 commits intoStatFunGen:mainfrom
al4225:main
Apr 8, 2025
Merged

multiple fixes in twas.R#372
gaow merged 3 commits intoStatFunGen:mainfrom
al4225:main

Conversation

@al4225
Copy link
Copy Markdown
Collaborator

@al4225 al4225 commented Apr 6, 2025

  1. twas.R:
  • harmonize_twas() function:

    • In the harmonize_twas() function, the 4th column in ld_info_data corresponds to X4, not V4. To avoid the column name error, I have used the 4th column directly (ld_info_data[, 4]) instead of referencing the column name.

    • For the other fix, if the filtered data is empty, I don’t want the process to stop. Instead, I have implemented logic to skip the current context and move on to the next one.

  1. misc.R:

In misc.R, if all p-values are NA, I made sure that qvalue NA is returned in such cases, avoiding errors.

@gaow gaow merged commit e61921a into StatFunGen:main Apr 8, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants